﻿using System;
using System.Collections.Generic;
using System.Threading;
using CommonLib;
using NetService;

namespace NwProvider
{
    public class NwProvider : IPlugin
    {
        public IPluginHost Host { get; set; }

        public void Initialize() { }

        public void DeInitialize() { }

        public void Dispose() { }

        public List<string> GetArticles(int count)
        {
            return NwArticleProvider.GetArticles(count);
        }

        public string Name
        {
            get { return "NewsWeek"; }
        }

        public WordStatArticle GetArticleData(string url)
        {
            return NwArticleProvider.GetArticle(url);
        }
    }
}
